import request from '@/utils/request'
/*.then(res => {
    // 返回数据
})
    .catch(err => {
        // 异常情况
    })*/
/*     FleetManage.getFleet(jsonData)
        .then(res => {
          // 返回数据
          res = res.data;

        }).catch(err => {
          // 异常情况
          console.log(err);
        })*/
// •	获取消息数据接口


export default {
  getFleet (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getFleet',
      method: 'post',
      data
    })
  },  getExtNumber (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/getExtNumber',
      method: 'post',
      data
    })
  },  getRoleName (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/getRoleName',
      method: 'post',
      data
    })
  }, getFleetUser (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/getFleetUser',
      method: 'post',
      data
    })
  }, deleteUser (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/deleteUser',
      method: 'post',
      data
    })
  }, addUser (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/addUser',
      method: 'post',
      data
    })
  },getUserBycount (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/electricRailController/fleetId',
      method: 'post',
      data
    })
  }, updateUser (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/updateUser',
      method: 'post',
      data
    })
  }, updatePassword (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/updatePassword',
      method: 'post',
      data
    })
  },
  queryFreeAOC (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/userManage/queryFreeAOC',
      method: 'post',
      data
    })
  },
  //获取左话机号
  getFleetSubWithCheck (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/getFleetSubWithCheck',
      method: 'post',
      data
    })
  },  //获取左话机号
  getFleetSubByType (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/subscriberManage/getFleetSubByType',
      method: 'post',
      data
    })
  },

}
